package com.lancoo.cvas.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lancoo.cvas.entity.RuleUsable;
import com.lancoo.cvas.mapper.RuleUsableMapper;
import com.lancoo.cvas.service.RuleUsableService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ruleUsableService")
public class RuleUsableServiceImpl extends ServiceImpl<RuleUsableMapper, RuleUsable> implements RuleUsableService {


    @Override
    public RuleUsable getByCode(Integer taskId, int code) {
        return baseMapper.getByCode(taskId,code);
    }

    @Override
    public List<RuleUsable> getByTask(Integer taskId) {
        return baseMapper.getByTaskId(taskId);
    }
}